package com.huaxin.hxmodulestatisticalanalysis.dto.response;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class TripEvent {
    public enum TripType {
        OVER_CURRENT,     // 过流跳闸
        UNKNOWN           // 其他原因
    }

    private LocalDateTime tripTime;         // 跳闸发生时间
    private Long deviceId;
    private Long stationNumber;
    private TripType type;                  // 跳闸类型
    private BigDecimal preCurrent;              // 跳闸前电流
    private BigDecimal peakCurrent;             // 峰值电流（突增点）
    private String description;             // 描述信息

    // 构造函数
    public TripEvent(LocalDateTime tripTime, Long deviceId, Long stationNumber) {
        this.tripTime = tripTime;
        this.deviceId = deviceId;
        this.stationNumber = stationNumber;
    }

    // Getters and Setters
    public LocalDateTime getTripTime() {
        return tripTime;
    }

    public void setTripTime(LocalDateTime tripTime) {
        this.tripTime = tripTime;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Long getStationNumber() {
        return stationNumber;
    }

    public void setStationNumber(Long stationNumber) {
        this.stationNumber = stationNumber;
    }

    public TripType getType() {
        return type;
    }

    public void setType(TripType type) {
        this.type = type;
    }

    public BigDecimal getPreCurrent() {
        return preCurrent;
    }

    public void setPreCurrent(BigDecimal preCurrent) {
        this.preCurrent = preCurrent;
    }

    public BigDecimal getPeakCurrent() {
        return peakCurrent;
    }

    public void setPeakCurrent(BigDecimal peakCurrent) {
        this.peakCurrent = peakCurrent;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}